<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form>
    <p>输入学生姓名<input type="text" name="name"> </p>
        <select name="school">
        <option value="" selected>请选择学校</option>
        {% for foo in school_data %}
            <option value="{{ foo.id }}">{{ foo.name }}</option>
        {% endfor %}

    </select>
    <input type="submit" value="提交">
</form>

<table>
    <tr>
        <td>id</td>
        <td>姓名</td>
        <td>性别</td>
        <td>成绩</td>
        <td>操作</td>
    </tr>
    {% for item in student_data %}
        <tr>
            <td>{{ item.id }}</td>
            <td>{{ item.name }}</td>
            <td>{{ item.gender }}</td>
            <td>{{ item.score }}</td>
            <td>
                <a href="/student/info/{{ item.id }}/"> 详情</a>
                 <a href="/student/del/{{ item.id }}/"> 删除</a>
                <a href="/student/update/{{ item.id }}/"> 修改</a>

            </td>

        </tr>
    {% endfor %}

    <a href="/student/add/">添加</a>

</table>
</body>
</html>